package com.tyut.sy1.controller;

import com.tyut.sy1.domain.Student;
import com.tyut.sy1.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController()
public class StudentController {
    @Autowired
    private StudentService studentService;
    @GetMapping("/hello")
    public Student getStudent() {
        return studentService.getStudent();
    }
}
